﻿using System;
using System.Linq;
using System.Text;

using SqlSugar;
namespace ERPModel.System.DataBaseModelMain
{
    ///<summary>
    ///
    ///</summary>
    [Tenant("0")]
    public partial class BOM
    {
           public BOM(){

            this.BOMId =Convert.ToString("substring(CONVERT([char](36),newid(),(0)),(1),(12))");
            this.IsActivity =true;
            this.IsDefaultBOM =true;
            this.DataStatus =Convert.ToString("1");
            this.CreateDate =DateTime.Now;

           }
           /// <summary>
           /// Desc:BOM主PK
           /// Default:substring(CONVERT([char](36),newid(),(0)),(1),(12))
           /// Nullable:False
           /// </summary>           
           [SugarColumn(IsPrimaryKey=true)]
           public string BOMId {get;set;}

           /// <summary>
           /// Desc:BOM根ID
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BOMRootId {get;set;}

           /// <summary>
           /// Desc:BOM版本
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BOMRevision {get;set;}

           /// <summary>
           /// Desc:描述
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string BOMDescription {get;set;}

           /// <summary>
           /// Desc:是否激活
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public bool? IsActivity {get;set;}

           /// <summary>
           /// Desc:是否是默认BOM
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public bool? IsDefaultBOM {get;set;}

           /// <summary>
           /// Desc:数据状态
           /// Default:1
           /// Nullable:True
           /// </summary>           
           public string DataStatus {get;set;}

           /// <summary>
           /// Desc:工厂Id
           /// Default:
           /// Nullable:True
           /// </summary>           
           public string FactoryId {get;set;}

           /// <summary>
           /// Desc:修改日期
           /// Default:
           /// Nullable:True
           /// </summary>           
           public DateTime? ModifyDate {get;set;}

           /// <summary>
           /// Desc:创建日期
           /// Default:DateTime.Now
           /// Nullable:True
           /// </summary>           
           public DateTime? CreateDate {get;set;}

    }
}
